package com.toro.protocol;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName: SequenceIdGenerator
 * @Description:
 * @Author: ToroLHZ
 * @Date: 2023/12/11 18:37
 */
public class SequenceIdGenerator {
    private static final AtomicInteger id = new AtomicInteger();

    public static int nextId() {
        return id.incrementAndGet();
    }
}
